/*
 * Copyright 2018 Zhongan.com All right reserved. This software is the
 * confidential and proprietary information of Zhongan.com ("Confidential
 * Information"). You shall not disclose such Confidential Information and shall
 * use it only in accordance with the terms of the license agreement you entered
 * into with Zhongan.com.
 */

package com.yh.create.Multition_parttern;

/**
 * TODO 类实现描述
 *
 * @author yanghui
 * @since 2018年7月13日 上午12:27:58
 */
public class Minister {
    public static void main(String[] args) {
        int countMinister = 10;
        for (int i = 0; i < countMinister; i++) {
            King king = King.getNewInstance();
            System.out.print("第" + i + "个大成拜见的是");
            king.kingInfo();
        }
    }
}
